String clazzTpl({package}) => """
import 'package:$package/store/redux/redux.dart';
import 'package:$package/store/theme/theme_state.dart';
import 'package:$package/store/app_config/app_config_state.dart';

enum ActionsType {
  updateThemeType,
  updateAppconfigType,
}

abstract class ThemeActions {
  ///异步
  static AsyncAction updateTheme(ThemeType type) {
    return (Store store) async {
      store.dispatch(Action(type: ActionsType.updateThemeType, data: type));
    };
  }
}

abstract class AppConfigActions {
  static AsyncAction updateAppConfig(AppConfigState data) {
    return (Store store) async {
      store.dispatch(Action(type: ActionsType.updateAppconfigType, data: data));
    };
  }

  static AsyncAction updateAppConfigDefTheme(AppConfigState data) {
    return (Store store) async {
      store.dispatch(Action(type: ActionsType.updateAppconfigType, data: data));
    };
  }
}
""";
